package cn.mw.cmdb.timeplan.entity;

import cn.mw.cmdb.util.CMDBConstants;
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;

public enum ActiveTimeEnum {
    now, custome;
    public String getLabel(MessageSource messageSource ,String key){
        String code = CMDBConstants.TimePlanPrefix + key;
        return messageSource.getMessage(code ,null , LocaleContextHolder.getLocale());
    }
}
